<template>
  <div class="wrapper">
    <div class="pageLog">
      <page-log></page-log>
    </div>
    <div class="" style="display:flex">
      <div class="wrapper_left">
        <div class="main">
          <preview-interface ></preview-interface>
        </div>
        <div class="cell req">
          <div class="label">抓图周期</div>
          <div class="value">
            <el-input placeholder="" v-model="CaptureCycle"> </el-input>
          </div>
        </div>
        <div class="row" style="margin: 15px 0">
          <button class="button" style="margin-right: 25px" @click="cancle">
            取消
          </button>
          <button class="button" @click="save">保存</button>
        </div>
      </div>
      <div class="wrapper_right">
        <ball-machine-control></ball-machine-control>

      </div>
    </div>
  </div>
</template>

<script>
import PageLog from "@/components/PageLog/index.vue";
import PreviewInterface from "@/components/PreviewInterface/index.vue";
import BallMachineControl from "@/components/BallMachineControl/index.vue";

export default {
  components: {
    PageLog,
    PreviewInterface,
    BallMachineControl
  },
  data() {
    return {
      CaptureCycle: "",
    };
  },
  computed: {
    commitRight() {
      if (!this.CaptureCycle) {
        return "请输入抓图周期";
      }

      return true;
    },
  },
  methods: {
    cancle() {},
    save() {
      if (this.commitRight && typeof this.commitRight === "boolean") {
      } else {
        this.$message({
          type: "info",
          message: this.commitRight,
        });
      }
    },
  },
};
</script>

<style scoped lang="scss" >
.cell {
  display: flex;
  padding: 5px 0 0 100px;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 15px;
  .label {
    width: 110px;
    text-align: left;
  }
  .value {
    color: #8d8e99;
    .el-input {
      width: 180px;
    }
    .el-textarea {
      width: 350px;
    }
  }
  .priceUnit {
    line-height: 32px;
    font-family: PingFang SC;
    color: #000000;
    font-size: 12px;
  }
  &.req {
    .label {
      &::before {
        content: "*";
        color: red;
      }
    }
  }
}
.button {
  height: 30px;
  line-height: 30px;
  padding: 0 30px;
  color: #1996fa;
  background: #e6f1fc;
  border: 1px solid #d0e7fe;
  border-radius: 5px;
}
.wrapper {
  display: flex;
  flex-direction: column;
}
.row {
  padding: 5px 0 0 100px;
  display: flex;
  flex-direction: row;
}
.main {
  display: flex;
  padding: 5px 0 0 100px;
}
</style>
